import axios from '../axios'
export default {
  //换电查询分页
  equipmentPage(data:any) {
    return axios.post('/deviceVehicle/page', data)
  },

  //新增设备
  addDevice(data:any) {
    return axios.post(`/deviceVehicle/insert`, data)
  },

  //修改设备
  updateDevice(data:any) {
    return axios.post(`/deviceVehicle/updateById`, data)
  },

  //删除设备
  delDeviceById(id:any) {
    return axios.delete( `/deviceVehicle/deleteById/${id}`)
  },

}
